<style>
.outermost {
  border: 4px solid #000;
  border-radius: 40px;
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.inner1 {
  background-color: green;
  width: 50px;
  height: 50px;
  position: relative;
  left: 50px;
  top: 50px;
  will-change: transform;
}

.inner2 {
  background-color: green;
  width: 10px;
  height: 260px;
  position: relative;
  left: 190px;
  top: -100px;
  will-change: transform;
}
</style>

<div class="outermost">
  <div class="inner1"></div>
  <div class="inner2"></div>
</div>
